//
// Created by wk on 2023/12/5.
//

#ifndef AUDIOEFFECT_AUDIOCONVERT_H
#define AUDIOEFFECT_AUDIOCONVERT_H

#include <cinttypes>

namespace audio {

    class AudioConvert {

    public:
        /**
         * int16转float32
         * @param s16leData
         * @param inputLen
         * @param out
         */
        static void convert_signed16_tof32(std::int16_t *s16leData, int inputLen, float *out);

        /**
         * float32 转int16
         * @param inputData
         * @param inputLen
         * @param out
         */
        static void convert_f32_to_signed16(float* inputData, int inputLen, std::int16_t* out);

    };

}

#endif //AUDIOEFFECT_AUDIOCONVERT_H
